<template>
  <div class="q-pa-md">
    <t-list>
      <t-item tag="label" v-ripple>
        <t-item-section>
          <t-item-label>Battery too low</t-item-label>
        </t-item-section>
        <t-item-section avatar>
          <t-toggle color="blue" v-model="notifications" val="battery" />
        </t-item-section>
      </t-item>

      <t-item tag="label" v-ripple>
        <t-item-section>
          <t-item-label>Friend request</t-item-label>
          <t-item-label caption>Allow notification</t-item-label>
        </t-item-section>
        <t-item-section avatar>
          <t-toggle color="green" v-model="notifications" val="friend" />
        </t-item-section>
      </t-item>

      <t-item tag="label" v-ripple>
        <t-item-section>
          <t-item-label>Picture uploaded</t-item-label>
          <t-item-label caption
            >Allow notification when uploading images</t-item-label
          >
        </t-item-section>
        <t-item-section avatar>
          <t-toggle color="red" v-model="notifications" val="picture" />
        </t-item-section>
      </t-item>
    </t-list>
  </div>
</template>

<script>
  import { ref } from 'vue';

  export default {
    setup() {
      return {
        notifications: ref(['friend']),
      };
    },
  };
</script>
